package com.chzu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chzu.pojo.QuestionInfo;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author lz
 * @Version 1.0
 * @Company 滁州大健康与养老产业研究院
 * @ClassName QuestionInfoMapper
 * @Description TODO
 * @Date 2022/02/21 19:12
 */
public interface QuestionInfoMapper extends BaseMapper<QuestionInfo> {

    /**
     * 模糊查询所有题目信息
     * @param question 模糊查询
     * @return
     */
    Page<QuestionInfo> getAllQuestionInfo(@Param("question") String question);


    /**
     * 分页查询所有题目以及对应的选项
     * @param question 题干
     * @return
     */
    Page<QuestionInfo> getQuestionInfoAndChose(@Param("question") String question);
}
